﻿<controls:ChildWindow x:Class="GranitePackageSystem.Views.Packaging.ChildWindows.UploadFiles"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           xmlns:GranitePackageSystem_FileUploader="clr-namespace:GranitePackageSystem.FileUploader"
           Width="500" Height="400" 
           Title="UploadFiles">
    <Grid x:Name="LayoutRoot" Margin="2">
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <StackPanel>
            <TextBlock Text="Please Upload a Zip Folder containing the source files and an OPL file with installation instructions" Margin="10" TextWrapping="Wrap" />
            <GranitePackageSystem_FileUploader:FileUploaderControl x:Name="fileUploader" UploadHandlerPath="~/UploaderControlHandler.ashx" Height="250" Loaded="fileUploader_Loaded" />
        </StackPanel>
        <Button x:Name="CancelButton" Content="Cancel" Click="CancelButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,0,0" Grid.Row="1" />
        <Button x:Name="OKButton" Content="Finished" Click="OKButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,79,0" Grid.Row="1" />
    </Grid>
</controls:ChildWindow>